﻿using System.Linq;
using System.Windows;
using System.Windows.Media;

namespace GraphLight.Controls
{
    public partial class DragDropManager
    {
        private static UIElement getDropTarget(UIElement element)
        {
            return VisualTreeHelper
                .FindElementsInHostCoordinates(_options.Current, element)
                .FirstOrDefault(GetAllowDrop);
        }
    }
}